//
//  ByNetBaseResponse.h
//  jmsfhz_ios
//
//  Created by pro on 16/8/10.
//  Copyright © 2016年 pro. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "ByNetBaseResponseData.h"                       // 解密后的数据model
@interface ByNetBaseResponse : NSObject

@property (nonatomic, copy) NSString *client_id;
@property (nonatomic, copy) NSString *notify_id;
@property (nonatomic, copy) NSString *sign;
@property (nonatomic, copy) NSString *time;
@property (nonatomic, copy) NSString *type;
@property (nonatomic, copy) NSString *data;             // 未解密的数据
@property (nonatomic, assign) ByNetDataType trueType;

@property (nonatomic, strong) ByNetBaseResponseData *dataModel;             // 解密后的数据model

@property (nonatomic, copy) void(^failourBlock)(NSString *desc, NSInteger code);
@property (nonatomic, copy) void(^successBlock)(id data, NSString *notifyID);

- (id)initWithDic:(NSDictionary *)dic trueType:(ByNetDataType)trueType;     // 初始化方法，用字典

- (void)dataAnalysis;                                                       // 数据解析
@end
